
{if !empty($par['comment']) && pdo_tableexists('dayu_comment')}
<div class="weui_navbar" style="height:44px;">
	<div class="weui_navbar_item">
		提交
	</div>
	<div class="weui_navbar_item">
		评论
	</div>
</div>
<div class="weui_tab_bd" id="dayu_body">
<div class="weui_tab_bd_item">
{else}
<div class="weui_tab_bd" id="dayu_body">
{/if}
{if $par['header']!=0}
	{if $par['header']==1}
	<div class="slide" id="slide1" style="margin-top:-10px;">
		<ul>
			<li>
				<img src="{$activity['thumb']}" data-src="{$activity['thumb']}" alt="">
				{if $activity['description']}
				<div class="slide-desc">
						<a href="javascript:;" data-target="#popup" class="f-white open-popup f12">{$activity['title']}</a>
				</div>
				{/if}
			</li>
		</ul>
	</div>
	{elseif $par['header']==3}
	<div class="slide" id="slide1">
		<ul>
			{loop $slide $s}
			<li>
				<img src="{php echo tomedia($s)}" data-src="{php echo tomedia($s)}" alt="">
			</li>
			{/loop}
		</ul>
		<div class="dot">
			{loop $slide $s}
			<span></span>
			{/loop}
		</div>
	</div>
	{elseif $par['header']==2}
	<header class="dayu-header">
		<a href="javascript:;" data-target="#popup" class="open-popup">
			<div class="weui_media_box weui_media_text">
				<h1 class="weui_media_title tcenter f-green f20">{$activity['title']}</h1>
				{if $activity['description']}
				<p class="weui_media_desc indent">{$activity['description']}</p>
				<p class="weui_media_info f-black tright"><i class="iconfont f11">&#xe61f;</i> 详情 >></p>
				{/if}
			</div>
		</a>
	</header>
	{/if}
{/if}